<% layout('/layouts/default.html', {title: '过程审核记录', libs: ['dataGrid']}){ %>
<div class="main-content">
    <div class="box box-main">
        <div class="box-header">
            <div class="box-title">
                <i class="fa icon-notebook"></i> ${text('审核记录')}
            </div>
            <#form:form id="searchForm" model="${dcSupTaskAudit}" action="${ctx}/audit/dcSupTaskAudit/recordList" method="post" class="form-inline"
            data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
                <#form:hidden path="targetId"/>
            </#form:form>
        </div>
        <div class="box-body">
            <table id="dataGrid"></table>
            <div id="dataGridPage"></div>
        </div>
    </div>
</div>
<% } %>
<script>
    // 初始化DataGrid对象
    $('#dataGrid').dataGrid({
        searchForm: $("#searchForm"),
        sortableColumn: false, // 列表不允许排序
        columnModel: [
            {header:'${text("审核类型")}', name:'auditType', index:'a.audit_type', width:120, align:"left", formatter: function(val, obj, row, act){
            	return js.getDictLabel(${@DictUtils.getDictListJson('dc_audit_type')}, val, '${text("未知")}', true);
            }},
            {header:'${text("审核人")}', name:'auditorName', index:'a.auditor_name', width:80, align:"center"},
            {header:'${text("审核结果")}', name:'auditResult', index:'a.audit_result', width:80, align:"center", formatter: function(val, obj, row, act){
                return js.getDictLabel(${@DictUtils.getDictListJson('dc_audit_result')}, val, '${text("未知")}', true);
            }},
            {header:'${text("审核意见")}', name:'auditOption', index:'a.audit_option', width:250, align:"left"},
            {header:'${text("审核时间")}', name:'auditTime', index:'a.audit_time', width:150, align:"center",
                formatter:'date', formatoptions:{srcformat:'Y-m-d H:i:s',newformat:'Y-m-d H:i'}
            },
        ],
        sortableColumn: false,
        emptyDataHint: true,
        // 加载成功后执行事件
        ajaxSuccess: function(data){

        }
    });
</script>
